package com.yami.shop.common.kdniao;

import com.alibaba.fastjson.JSONObject;
import com.yami.shop.common.util.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Slf4j
@Component
public class KdNiaoNotify {
    /**
     * 快递鸟异步通知解析接口
     * */
    public KDNotifyBean paresNotify(String str){
        return null;
    }
    //返回异步响应数据
    public String responseStr(String EBusinessID){
        Map<String,Object> map = new HashMap<>();
        map.put("EBusinessID",EBusinessID);
        map.put("UpdateTime", DateUtils.dateToString(new Date()));
        map.put("Success",true);
        map.put("Reason","");
        return JSONObject.toJSONString(map);
    }
}
